<?php session_start(); include('../config.php');
$name=$_SESSION['myusername'];
$result = mysql_query("SELECT admin FROM klant WHERE email = '{$name}'");
if (!$result) {
    die("1 | Query to show fields from table failed");
}
$row=mysql_fetch_array($result); 
if($row['admin'] <> 1)
{
header ("Location: http://www.group3productions.info/index.php");
}
 include('../style/header-1.php');//hieronder komt de linkerbalk met artikelen ?><!--Alhier het systeem voor het behoud van een layout op de hele website. Alle wijzigingen aan de layout dienen te gebeuren in de header,body en footer.php bestanden. Enkel de content mag in dit bestand staan.--><?php include('../menu.php');//dit zorgt ervoor dat het menu verschijnt. ?>
<?php include('../style/body-2.php');//hieronder het midden van de pagina ?>
<?php
include "connect.php";

$getlist="SELECT * from newsletter order by email ASC"; //select e-mails in ABC order

$getlist2=mysql_query($getlist) or die("Could not get list");

print "<table border='1'><tr><td>Email</td><td>Delete</td></tr>";

while($getlist3=mysql_fetch_array($getlist2))

{

   print "<tr><td><A href='mailto:$getlist3[email]'>$getlist3[email]</a></td><td><A href='deluser.php?ID=$getlist3[userID]'>Delete</a></td></tr>";

}

print "</table>";

?>
<?php include('../style/body-3.php');//hieronder de rechterbalk ?>
<?php
require_once("../cart/inc/functions/Cart_Functions.php");
require_once("../Local_Settings.php"); 

echo ( DisplayCartBald($Session_Prefix,$Currency_Symbol,$Currency_Code));?> 
<?php include('../style/footer-4.php');?>
